<template>
    <div class="human-ai">
        <el-button @click="createPoi2D()">添加摄像头图元</el-button>
    </div>
</template>

<script setup lang="ts">
import { getMyProjectManager } from "@/getMyProjectManager";
import { ESPoi2D } from "esobjs-xe2-plugin/dist-node/esobjs-xe2-plugin-main";
const myProjectManager = getMyProjectManager()


const createPoi2D = () => {
    const e = myProjectManager.createSceneObject(ESPoi2D)
    if (!e) return
    e.editing = true
    e.mode = 'Camera'
    e.name = "12"

}


</script>
<style scoped></style>